import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/login',
    name: 'index',
    component: () => import( '../views/hello-word.vue')
  },
  {
    path: '/question',
    name: 'question',
    component: () => import( '../views/question-answer.vue')
  },
  {
    path: '/',
    name: 'login',
    component: () => import( '../views/loginProlem.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import( '../views/testQuestion.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import( '../views/registerView.vue')
  },
  {
    path: '/system',
    name: 'system',
    component: () => import( '../views/systemView.vue'),
    children: [
      {
        path: '/201v',
        name: '201',
        component: () => import( '../views/201Vie.vue')
      },
      {
        path: '/202v',
        name: '202',
        component: () => import( '../views/202Vie.vue')
        
      },
      {
        path: '/203v',
        name: '203',
        component: () => import( '../views/203Vie.vue')
      },
      {
        path: '/204v',
        name: '204',
        component: () => import( '../views/204Vie.vue')
        
      },
      {
        path: '/205v',
        name: '205',
        component: () => import( '../views/205Vie.vue')
      },
      {
        path: '/206v',
        name: '206',
        component: () => import( '../views/206Vie.vue')
        
      },
      {
        path: '/207v',
        name: '207',
        component: () => import( '../views/207Vie.vue')
      },
      {
        path: '/208v',
        name: '208',
        component: () => import( '../views/208Vie.vue')
        
      },
      {
        path: '/301v',
        name: '301',
        component: () => import( '../views/301Vie.vue')
      },
      {
        path: '/302v',
        name: '302',
        component: () => import( '../views/302Vie.vue')
        
      },
      {
        path: '/303v',
        name: '303',
        component: () => import( '../views/303Vie.vue')
      },
      {
        path: '/304v',
        name: '304',
        component: () => import( '../views/304Vie.vue')
        
      },
      {
        path: '/305v',
        name: '305',
        component: () => import( '../views/305Vie.vue')
      },
      {
        path: '/306v',
        name: '306',
        component: () => import( '../views/306Vie.vue')
        
      },
    ]
  },
  {
    path: '/enfj',
    name: 'register1',
    component: () => import( '../result/ENFJ.vue')
  },
  {
    path: '/enfp',
    name: 'register2',
    component: () => import( '../result/ENFP.vue')
  },
  {
    path: '/entj',
    name: 'register3',
    component: () => import( '../result/ENTJ.vue')
  },
  {
    path: '/entp',
    name: 'register4',
    component: () => import( '../result/ENTP.vue')
  },
  {
    path: '/esfj',
    name: 'register5',
    component: () => import( '../result/ESFJ.vue')
  },
  {
    path: '/esfp',
    name: 'register6',
    component: () => import( '../result/ESFP.vue')
  },
  {
    path: '/estj',
    name: 'register7',
    component: () => import( '../result/ESTJ.vue')
  },
  {
    path: '/estp',
    name: 'register8',
    component: () => import( '../result/ESTP.vue')
  },
  {
    path: '/infj',
    name: 'register9',
    component: () => import( '../result/INFJ.vue')
  },
  {
    path: '/infp',
    name: 'register10',
    component: () => import( '../result/INFP.vue')
  },
  {
    path: '/intj',
    name: 'register11',
    component: () => import( '../result/INTJ.vue')
  },
  {
    path: '/intp',
    name: 'register12',
    component: () => import( '../result/INTP.vue')
  },
  {
    path: '/isfj',
    name: 'register13',
    component: () => import( '../result/ISFJ.vue')
  },
  {
    path: '/isfp',
    name: 'register14',
    component: () => import( '../result/ISFP.vue')
  },
  {
    path: '/istj',
    name: 'register15',
    component: () => import( '../result/ISTJ.vue')
  },
  {
    path: '/istp',
    name: 'register16',
    component: () => import( '../result/ISTP.vue')
  },

]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
